//
//  UserModel.m
//  练习
//
//  Created by hcios on 2017/7/7.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "UserModel.h"

#import "Tools.h"

@implementation UserModel
-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self = [self init]) {
        _fan_id = numberToString(dict[@"id"]);
        _fan_name = NonEmptyString(dict[@"name"]);
        _fan_image = NonEmptyString(dict[@"image"]);
        _fan_trip_name = NonEmptyString(dict[@"latest_publish_trip_name"]);
    }
    return self;
}

-(instancetype)initWithGZDict:(NSDictionary *)dict{
    
    if (self = [self init]) {
        _fan_id = numberToString(dict[@"id"]);
        _fan_name = NonEmptyString(dict[@"name"]);
        _fan_image = NonEmptyString(dict[@"image"]);
        _trips_count = numberToString(dict[@"trips_count"]);
    }
    return self;
}

@end
